/**
 * 司机管理Api
 * @author 方礼爱
 * @version 1.0.0
 */
import request from '@/utils/request'

export  const edit= (param) => {
  return request.fetchPost("/cys/carDriver/edit",param);
}
/**
 * 获取所有的司机列表
 * @param {查询参数} search
 */
export const getDriverPageList = (search = {}) => {
  return request.fetchPost('/cys/carDriver/list/page', search)
}

/**
 *司机审核
 * @param driverid
 * @param status
 * @returns {*}
 */
export const doExamineCarDriver = (driverid, status) => {
  return request.fetchPost('/cys/carDriver/doExamineCarDriver', { driverid: driverid, status: status })
}


/**
 * 启用/禁用
 * @param driverId
 * @returns {*}
 */
export const doSwitchCarDriverUse = (driverId) => {
  return request.fetchPost('/cys/carDriver/doSwitchCarDriverUse', { driverid: driverId })
}

/**
 * 审核
 * @param driverId
 * @param status
 * @returns {*}
 */
export const examine = (driverId, status) => {
  return request.fetchPost('/cys/carDriver/doExamineCarDriver', { driverid: driverId, status: status })
}

